package com.haiya.identityaccess.infrastructure.persistence.mybatis.datamodel;

import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author qiaoguoqiang
 */
@TableName("tbl_role")
public class DataRole {
    private Integer id;
    private String description;
    private Integer groupId;
    private String name;
    private Integer supportsNesting;
    private String tenantIdId;
    private Integer concurrencyVersion;

    public DataRole() {
    }

    public DataRole(
            String tenantIdId,
            String name,
            String description,
            Integer concurrencyVersion) {
        this.description = description;
        this.name = name;
        this.tenantIdId = tenantIdId;
        this.concurrencyVersion = concurrencyVersion;
        this.supportsNesting = 1;
        this.groupId = 1;
    }

    public DataRole(
            String tenantIdId,
            String name,
            String description) {
        this.description = description;
        this.name = name;
        this.tenantIdId = tenantIdId;
        this.concurrencyVersion = 1;
        this.supportsNesting = 1;
        this.groupId = 1;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSupportsNesting() {
        return supportsNesting;
    }

    public void setSupportsNesting(Integer supportsNesting) {
        this.supportsNesting = supportsNesting;
    }

    public String getTenantIdId() {
        return tenantIdId;
    }

    public void setTenantIdId(String tenantIdId) {
        this.tenantIdId = tenantIdId;
    }

    public Integer getConcurrencyVersion() {
        return concurrencyVersion;
    }

    public void setConcurrencyVersion(Integer concurrencyVersion) {
        this.concurrencyVersion = concurrencyVersion;
    }
}
